package com.dycong.common.function;

import java.util.function.Consumer;

/**
 * Created by yu on 15-7-10.
 */
public interface ThrewConsumer<T> extends Consumer<T>{

    void threwAccept(T o) throws Throwable;

    @Override
    default void accept(T o){
        try{
            threwAccept(o);
        }catch (Throwable e){
            throw new RuntimeException(e);
        }
    }


}
